<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .outer {
        width: 640px;
        height: 640px;
        position: relative;
        overflow: hidden;
      }
      img {
        /* 
      该元素所有可以过渡的属性都进行过渡
      过渡时间1s
      过渡效果匀速
      */
        transition: all 1s linear;
      }
      .mask {
        width: 640px;
        height: 640px;
        background-color: black;
        color: white;
        position: absolute;
        text-align: center;
        line-height: 640px;
        font-size: 64px;
        left: 0;
        top: 0;
        opacity: 0;
        transition: all 1s linear;
      }
      .outer:hover .mask {
        opacity: 0.3;
      }
      .outer:hover img {
        transform: scale(1.3, 1.3) rotateZ(15deg) ;
      }
    </style>
  </head>
  <body>
    <div class="outer">
      <img src="./logo.png" alt="" />
      <div class="mask">韩立</div>
    </div>
  </body>
</html>
